<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class Form2 extends TimeModel
{

    protected $name = "form2";

    protected $deleteTime = false;

    
    
    public function getDosageList()
    {
        return ['0'=>'无','1'=>'第1剂','2'=>'第2剂','3'=>'第3剂',];
    }

    public function getDosageNameById(string $name)
    {
        $list = $this->getDosageList();
        foreach ($list as $k => $v) {
            if ($v == $name) return $k;
        }
        return 0;
    }

}